package scrum.client.common;

import scrum.client.admin.User;
import scrum.client.project.Project;

public class RequirementsFilterFactory {

	public static final int FILTER_OFF = 0;
	public static final int FILTER_BYGROUP = 1;

	public static RequirementsFilter getFilter(int filterType) {
		RequirementsFilter filter = null;
		switch (filterType) {
			case FILTER_OFF:
				filter = new RequirementsFilter_Off();
				break;
			case FILTER_BYGROUP:
				filter = new RequirementsFilter_ByProjectGroup();
				break;
			default:
				filter = new RequirementsFilter_Off();
				break;
		}
		return filter;
	}

	public RequirementsFilter_ByProjectGroup getFilterByProjectGroup(User user, Project project) {
		return new RequirementsFilter_ByProjectGroup(user, project);
	}

	public RequirementsFilter_Off getFilterOff() {
		return new RequirementsFilter_Off();
	}
}
